<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchInternalUserControl.ascx.vb"
    Inherits="WebForm_SearchControl_SearchInternalUserControl" %>
<asp:Panel ID="panel1" runat="server" BackColor="white" BorderWidth="1" SkinID="DragPanel"
    Width="500">
    <br />
    <div align="center">
        <asp:Label ID="lblForm" runat="server" meta:resourcekey="Page" SkinID="title"></asp:Label>
    </div>
    <br />
    <table align="center">
        <tr>
            <td>
                <table align="left">
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblOrganizationID" runat="server" meta:resourcekey="lblOrganizationID"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlOrganizationID" runat="server" DataTextField="OrganizationName"
                                DataValueField="UOrganizationID">
                            </asp:DropDownList>
                            <asp:ObjectDataSource ID="ObjectDataSource_UOrganizationData" runat="server" OldValuesParameterFormatString="original_{0}"
                                SelectMethod="BLL_Select" TypeName="BLL_DirectOrganizationData">
                                <SelectParameters>
                                    <asp:Parameter Name="ListAll" DefaultValue="false" />
                                </SelectParameters>
                                </asp:ObjectDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            <asp:Label ID="Label1" runat="server" meta:resourcekey="lblUserName"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <My:MyGridView ID="gv" runat="server" SkinID="pager" DataKeyNames="UserID" meta:resourcekey="gv"
                    AllowPaging="True" AllowHoverSelect="True" AllowHoverEffect="True" MySortDirection="Ascending">
                    <Columns>
                        <asp:TemplateField meta:resourcekey="bfOrganizationName">
                            <itemtemplate>
                                <asp:Label id="lblOrganizationName" runat="server" Text='<%# Bind("OrganizationName") %>'></asp:Label>
                            </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfUserName">
                            <itemtemplate>
                                <asp:Label id="lblUserName" runat="server" Text='<%# Bind("UserName") %>'></asp:Label>
                                
                                <asp:HiddenField ID="UOrganizationID" runat="server" Value='<%# Bind("UOrganizationID") %>' />
                            </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfPhoneNumber">
                            <itemtemplate>
                                <asp:Label id="lblPhoneNumber" runat="server" Text='<%# Bind("PhoneNumber") %>'></asp:Label>
                            </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfFaxPhoneNumber">
                            <itemtemplate>
                                <asp:Label id="lblFaxPhoneNumber" runat="server" Text='<%# Bind("FaxPhoneNumber") %>'></asp:Label>
                            </itemtemplate>
                        </asp:TemplateField>
                        <asp:TemplateField meta:resourcekey="bfEmail">
                            <itemtemplate>
                                <asp:Label id="lblEmail" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                            </itemtemplate>
                        </asp:TemplateField>
                    </Columns>
                </My:MyGridView>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnOK" runat="server" meta:resourcekey="btnOK" />
                <asp:Button ID="btnCancel" runat="server" meta:resourcekey="btnCancel" />
            </td>
        </tr>
    </table>
    <br />
</asp:Panel>
<asp:Button ID="btnDummy" runat="server" Style="display: none" SkinID="null" />
<ajaxToolkit:ModalPopupExtender ID="mpSearch" runat="server" TargetControlID="btnDummy"
    PopupControlID="panel1" OkControlID="btnCancel" PopupDragHandleControlID="panel1" />
